package com.kh.pajx.sop.domain;

import java.io.Serializable;
import java.util.List;

/**
 * SOP用户对象
 * @author:	azzcsimp
 * @Createdate:	2014年8月11日 下午2:10:37
 */
public class SOPCurrentUser implements Serializable {

	private static final long serialVersionUID = 1295066893402771472L;
	

	/** 用户标识 */
	private String userId;
	
	/** 登录账户 */
	private String account;
	
	/** 密码 */
	private String password;
	
	/** 姓名 */
	private String userName;
	
	/** 图形验证码 */
	private String captcha;
	
	/** 上次登录密码 */
	private String lastLoginTime;
	
	/** 上次登录IP */
	private String lastLoginIp;
	
	/** 内部用户对象 */
	private SysInsideUser insideUser;
	
	/** 用户组对象 */
	private SysUserGroup userGroup;
	
	/** 用户角色对象 */
	private SysUserRole userRole;
	
	/** 用户部门对象 */
	private SysDepartment department;
	
	/** 学校id列表 */
	private List<String> sclIdList;
	
	/** 开发者 */
	private boolean debug = false;
	
	// ============================================
	
	public boolean isLookAll(){
		if(insideUser.isAdmin()){
			return true;
		}
		if(userRole.getUsrDataRange()==0){
			return true;
		}
		return false;
	}
	
	public boolean isDebug() {
		return insideUser.isDebug();
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getCaptcha() {
		return captcha;
	}

	public void setCaptcha(String captcha) {
		this.captcha = captcha;
	}

	public SysInsideUser getInsideUser() {
		return insideUser;
	}

	public void setInsideUser(SysInsideUser insideUser) {
		this.insideUser = insideUser;
	}

	public SysUserGroup getUserGroup() {
		return userGroup;
	}

	public void setUserGroup(SysUserGroup userGroup) {
		this.userGroup = userGroup;
	}

	public SysUserRole getUserRole() {
		return userRole;
	}

	public void setUserRole(SysUserRole userRole) {
		this.userRole = userRole;
	}

	public SysDepartment getDepartment() {
		return department;
	}

	public void setDepartment(SysDepartment department) {
		this.department = department;
	}

	public List<String> getSclIdList() {
		return sclIdList;
	}

	public void setSclIdList(List<String> sclIdList) {
		this.sclIdList = sclIdList;
	}

	public String getLastLoginTime() {
		return lastLoginTime;
	}

	public void setLastLoginTime(String lastLoginTime) {
		this.lastLoginTime = lastLoginTime;
	}

	public String getLastLoginIp() {
		return lastLoginIp;
	}

	public void setLastLoginIp(String lastLoginIp) {
		this.lastLoginIp = lastLoginIp;
	}
	
	
	
}
